<?php
/**
 * Created by PhpStorm.
 * 用户优惠券表
 * User: spring
 * Date: 19-5-23
 * Time: 下午2:20
 */

namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class UserReward extends Model
{
    protected $table = 'user_reward';

    protected $fillable = [
        'status',
        'money',
        'full',
        'type_source',
        'activity_sale_id',
        'card_name',
        'user_id',
        'time_start_valid',
        'time_end_valid',
        'created_at',
    ];
    // 状态
    const STATUS_YES = 1; // 启用
    const STATUS_NO = 2; // 禁用

    // 来源
    const SOURCE_ADMIN = 1; // 后台发放
    const SOURCE_ONLINE = 2; // 前台获得
    const SOURCE_AUTO = 3; // 自动获取

}